#ifndef SHATARGETSPRITE_H
#define SHATARGETSPRITE_H

#include "hgeSprite.h"

class hgeTargetSprite : public hgeSprite
{
public:
	hgeTargetSprite(HTARGET targ, float x, float y, float w, float h, bool autoFreeTarget = true);
	hgeTargetSprite(const hgeTargetSprite &targSpr);
	~hgeTargetSprite() {if (b_freeTarget == true && target != 0) hge->Target_Free(target);}


	void		RestoreTexture();
	HTARGET		GetTarget() const { return target; }
protected:
	hgeTargetSprite();

	HTARGET target;
	bool b_freeTarget;
};

#endif